home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
vbfloat
/
float.frm
< prev
next >
Wrap
Text File
|
1995-09-06
|
1KB
|
56 lines
VERSION 2.00
Begin Form Float
BackColor = &H00FFFF00&
Caption = "Float"
ClientHeight = 1410
ClientLeft = 4275
ClientTop = 2460
ClientWidth = 2310
Height = 1815
Left = 4215
LinkTopic = "Form1"
ScaleHeight = 1410
ScaleWidth = 2310
Top = 2115
Width = 2430
Begin CommandButton Command1
Caption = "Close"
Height = 375
Left = 360
TabIndex = 0
Top = 270
Width = 1635
End
End
Sub Command1_Click ()
Unload float
End Sub
Sub Form_Load ()
Dim OriginalParenthWnd As Integer
FloatUnloaded = True
'.............. Set parent for the Float to display on top:
OriginalParenthWnd = SetWindowWord(Me.hWnd, GWW_HWNDPARENT, parent.hWnd)
End Sub
Sub Form_Unload (Cancel As Integer)
Dim ret As Integer
'...................... Return the original parent handle:
ret = SetWindowWord(Me.hWnd, GWW_HWNDPARENT, OriginalParenthWnd)
FloatUnloaded = False
End Sub